package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ShowGoodsDao;
import com.platform.entity.ShowGoodsEntity;
import com.platform.service.ShowGoodsService;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-08-30 10:04:32
 */
@Service("showGoodsService")
public class ShowGoodsServiceImpl implements ShowGoodsService {
    @Autowired
    private ShowGoodsDao showGoodsDao;

    @Override
    public ShowGoodsEntity queryObject(Integer id) {
        return showGoodsDao.queryObject(id);
    }

    @Override
    public List<ShowGoodsEntity> queryList(Map<String, Object> map) {
        return showGoodsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return showGoodsDao.queryTotal(map);
    }

    @Override
    public int save(ShowGoodsEntity showGoods) {
        return showGoodsDao.save(showGoods);
    }

    @Override
    public int update(ShowGoodsEntity showGoods) {
        return showGoodsDao.update(showGoods);
    }

    @Override
    public int delete(Integer id) {
        return showGoodsDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return showGoodsDao.deleteBatch(ids);
    }
}
